package org.item.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.item.common.bean.SysUser;

import java.util.List;

public interface IUserService {
    public SysUser insert(SysUser user);
    public SysUser update(SysUser user);

    public int delete(Integer id);

    public SysUser getById(Integer id);

    IPage<SysUser> getListPage(IPage page, SysUser user);

    List<SysUser> getList(SysUser user);

    int setStatus(Integer id);

    SysUser assignRole(SysUser user);

    SysUser getByUsername(String username);
}
